EXIT
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
NAME
exit
- perform normal program termination
SYNOPSIS
Fd #include <stdlib.h>
Ft void
Fn exit int status
DESCRIPTION
Fn Exit
terminates a process.
Before termination it performs the following functions in the
order listed:
-
Call the functions registered with the
atexit(3)
function, in the reverse order of their registration.
-
Flush all open output streams.
-
Close all open streams.
-
Unlink all files created with the
tmpfile(3)
function.
RETURN VALUES
The
Fn exit
function
never returns.
SEE ALSO
_exit2,
atexit(3),
intro(3),
tmpfile(3)
STANDARDS
The
Fn exit
function
conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- RETURN VALUES
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 19:41:59 GMT, December 25, 2022